package com.cursor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.io.File;

@SpringBootApplication
public class CursorSwitcherApiApplication {
    
    public static void main(String[] args) {
        // 确保db目录存在
        File dbDir = new File("db");
        if (!dbDir.exists()) {
            dbDir.mkdir();
            System.out.println("创建数据库目录: " + dbDir.getAbsolutePath());
        }
        
        SpringApplication.run(CursorSwitcherApiApplication.class, args);
    }
} 